package com.sihan.swvp.dao.sys;

import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.github.pagehelper.Page;
import com.sihan.swvp.dao.BaseDao;


public interface LogDao extends BaseDao{
	
	public void addUserLog(@Param("title")String title,@Param("mark")String mark,@Param("content")String content,@Param("cruser")long cruser,@Param("ipaddr")String ipaddr,@Param("success")int success,@Param("type")int type);
	public void delUserLog(@Param("id")int id);
	public void delUserLogs(@Param("ids")int[] ids);
	public Page<Map<String,Object>> getUserLog(Map<String,Object> params);
	
	public void addSystemLog(@Param("title")String title,@Param("mark")String mark,@Param("content")String content,@Param("cruser")long cruser);
	public void delSystemLog(@Param("id")int id);
	public void delSystemLogs(@Param("ids")int[] ids);
	public Page<Map<String,Object>> getSystemLog(Map<String,Object> params);
}
